<template>
	<view class="detail">
		<!-- #ifndef H5 -->
		<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers"
			:polyline="lines">
		</map>
		<!-- #endif -->
		
		<view class="">
			测试
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				packageDetail: {},
				id: 0, // 使用 marker点击事件 需要填写id
				title: 'map',
				latitude: 39.909,
				longitude: 116.39742,
				covers: [{
					latitude: 39.909,
					longitude: 116.39742,
					iconPath: '/static/search/wangdian.png',
					width: 10,
					height: 10
				}, {
					latitude: 34.70,
					longitude: 114.39,
					iconPath: '/static/search/wangdian.png',
					width: 30,
					height: 30
				}],
				lines: [{
					points: [{
							latitude: 39.909,
							longitude: 116.39742
						},
						{
							latitude: 34.70,
							longitude: 114.39,
						}
					],
					color: "#31c27c",
					width: 10,
					arrowLine: true,
					borderWidth: 2
				}]
			}
		},
		methods:{
			
		}
	}
</script>

<style>
	.detail {
		padding: 30rpx 50rpx;
		font-size: 32rpx;
		line-height: 50rpx;
	}
</style>